import { createStore } from 'vuex'
import home from './modules/home'
import mine from './modules/mine'
import leave from './modules/leave'
import oneCard from './modules/one-card'
import pay from './modules/pay'
export default createStore({
  state: {
    userInfo: {
      id: 123456,
      avatar: 'https://img.yzcdn.cn/vant/cat.jpeg',
      name: '王海海',
      stu_id: 2021030612,
      grade: '19软件6班'
    },
    topUserPayInfo:{
      id:12345,
      stu_id: 2021030612,
      amount:5000
    }
  },
  mutations: {},
  actions: {},
  modules: {
    home,
    mine,
    leave,
    oneCard,
    pay
  }
})
